package ArrayTest;

public class Arraydemo {
    public static void main(String[] args){
        int [][]arr={
                {20,30,40},
                {30,40,50},
                {40,50,60},
                {50,60,70}
        };
//        System.out.println(arr[0][2]);
//        System.out.println(arr[2][3]);
        for (int i = 0; i < arr.length ; i++) {
            for (int j = 0; j <arr[i].length ; j++) {
                System.out.print(arr[i][j]+"\t");
            }
        }
    }
}
